const mongoose = require("../database/db");

const usersSchema = new mongoose.Schema({
  userId:{type:String},
  tel:{type:String},
  email:{type: String},
  nickName:{type:String},
  password:{type:String},
  birth:{type:Number},
  power:{type:Number},   // 0用户，1管理员
  sex: {type: Number},
  avatar:{type:String},
  pay:{type:String}
})

module.exports = mongoose.model("users", usersSchema);